<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Config extends Model
{

    public function getValueAttribute($value)
    {
        if(isJson($value))
        {
            return json_decode($value,true);
        }
        return $value;
    }
}
